package com.hfut.jpoa.service;

import java.util.List;

import com.hfut.jpoa.common.dto.ResultDto;
import com.hfut.jpoa.dto.QuoteDTO;
import com.hfut.jpoa.model.Dispatch;
import com.hfut.jpoa.model.Quote;
import com.hfut.jpoa.model.User;
import com.hfut.jpoa.service.exception.QuoteException;
import com.hfut.jpoa.service.exception.SysparaException;

public interface QuoteService
{
	/**
	 * 
	 * 根据条件查询页面列表
	 * 
	 * @param condition
	 * @return
	 * @throws QuoteException
	 */
	public ResultDto<Quote> queryInfoForPage(QuoteDTO condition)
	        throws QuoteException;

	/**
	 * 插入新纪录
	 * 
	 * @param condition
	 * @throws QuoteException
	 */
	public void insert(Quote condition) throws QuoteException;

	/**
	 * 
	 * 编辑记录
	 * 
	 * @param record
	 * @throws QuoteException
	 */
	public void update(Quote record) throws QuoteException;

	/**
	 * 查询详情
	 * 
	 * @param syspara
	 * @return
	 * @throws SysparaException
	 */
	public Quote findInfo(Quote condition) throws QuoteException;

	/**
	 * 验证编码是否已经被使用
	 * 
	 * @param condition
	 * @return 存在返回true，失败返回false
	 * @throws QuoteException
	 */
	public boolean codeValidator(Quote condition) throws QuoteException;

	/**
	 * 查询列表
	 * 
	 * @param config
	 * @return
	 * @throws SysparaException
	 */
	public List<Quote> queryList(Quote condition) throws QuoteException;

	/**
	 * 保存报修信息
	 * 
	 * @param dispatch
	 * @throws SysparaException
	 */
	public void save(Quote dispatch) throws QuoteException;

}
